Skip to content

chore(package.json): replaced "prepare" hook with "postintall"#42

Merged
pipopotamasu merged 1 commit into
masterfrom
postinstall-husky
Aug 11, 2025
Merged

chore(package.json): replaced "prepare" hook with "postintall"#42
pipopotamasu merged 1 commit into
masterfrom
postinstall-husky

Conversation

@pipopotamasu

@pipopotamasu pipopotamasu commented Aug 8, 2025

Copy link
Copy Markdown
Collaborator

I added prepare hook in this PR to run husky command when installing dependencies, but I noticed the hook also works when publishing a new version of the library which is not what I expected.

This PR replaces "prepare" hook with "postintall" to prevent it from running when publishing a new version.

Replaced "prepare" hook with "postintall" to prevent it from running when publishing a new version
@pipopotamasu pipopotamasu marked this pull request as ready for review August 8, 2025 18:50

@fallenAfter fallenAfter left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pipopotamasu pipopotamasu merged commit 4a284df into master Aug 11, 2025
3 checks passed
@pipopotamasu pipopotamasu deleted the postinstall-husky branch August 11, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants